@import com.mgfireworks.mgplatform.mgadmin.user.model.UserDetail
@extends("/form_template")
@args Boolean isEdit
@args UserDetail userDetail
@{
	if(userDetail==null){
		userDetail=new UserDetail();
	}
}
<div class="row form-horizontal form-label-left">
   <div class="col-md-12 col-sm-12 col-xs-12">
     <div class="x_panel">
       <div class="x_title">
         <h2>@if(isEdit){修改}else{添加}用户详情</h2>
         <div class="clearfix"></div>
       </div>
       <div class="x_content">
	       <div class="form-group">
	         <label class="control-label col-md-3 col-sm-3 col-xs-12" for="userId">用户编号<span class="required">*</span>
	         </label>
	         <div class="col-md-6 col-sm-6 col-xs-12">
	           <input type="text" id="userId" name="userId" value="@userDetail.getUserId()" placeholder="请输入用户编号" required="required" @if(isEdit&&true){readonly="readonly"} class="form-control col-md-7 col-xs-12">
	         </div>
	       </div>
	       <div class="form-group">
	         <label class="control-label col-md-3 col-sm-3 col-xs-12" for="userMail">邮箱
	         </label>
	         <div class="col-md-6 col-sm-6 col-xs-12">
	           <input type="text" id="userMail" name="userMail" value="@userDetail.getUserMail()" placeholder="请输入邮箱"  @if(isEdit&&false){readonly="readonly"} class="form-control col-md-7 col-xs-12">
	         </div>
	       </div>
	       <div class="form-group">
	         <label class="control-label col-md-3 col-sm-3 col-xs-12" for="userAvatar">用户图像
	         </label>
	         <div class="col-md-6 col-sm-6 col-xs-12">
	           <input type="text" id="userAvatar" name="userAvatar" value="@userDetail.getUserAvatar()" placeholder="请输入用户图像"  @if(isEdit&&false){readonly="readonly"} class="form-control col-md-7 col-xs-12">
	         </div>
	       </div>
       </div>
     </div>
   </div>
</div>